package com.siyuanren.gcocp.mapper;

import com.siyuanren.gcocp.vo.AdminInsertVo;
import com.siyuanren.gcocp.vo.AdminUpdateVo;
import com.siyuanren.gcocp.vo.SqlVo;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * Created by   anxing
 * Project_name gcocp-parent
 * Path         com.siyuanren.gcocp.mapper
 * Date         2018/5/2
 * Time         10:23
 * Description
 */
public interface MyAdminMapper {

    /**
     * 插入数据
     * @param sql
     * INSERT INTO wx_course VALUES('0','2018-04-02 10:00:41','1','1','1','1','1','1','1','1','1','1','1','1','1')
     */
    void insert(SqlVo sql);


    /**
     * 删除数据
     * @param @param sql
     */
    void delete(SqlVo sql) throws IOException;

    /**
     *  更新数据
     * @param sql
     */
    void update(SqlVo sql) throws IOException;

    /**
     * 查询数据
     * @param sql
     * @return
     */
    List<Map<String, ?>> select(SqlVo sql) throws IOException;

    Integer selectCount(SqlVo sqlVo) throws IOException;
}
